﻿using Microsoft.Extensions.DependencyInjection;
using SimpleORM.Infrastructure;
using SimpleORM.Model.DataBaseModel;
using SimpleORM.Repository.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleORM.Repository.Repository
{
    [Service(ServiceLifetime.Scoped)]
    public class StudentRepository : BaseRepository<Student>, IStudentRepository
    {
        public List<Student> GetStudent()
        {
            var ss = Context.Queryable<Student>().ToList();
            return ss;

        }
    }
}
